<?php

    class MY_Controller extends CI_Controller
    {
        public $data;
        public function __construct() 
        {
            parent::__construct();
//            $user_id = $this->session->userdata('user_id');
//            $this->data['user'] = $this->user_lib->get($user_id);
         
            $this->load->model('Menu_Model');
            $this->data['menus'] = $this->Menu_Model->getAll();
//            $qs = $this->Menu_Model->getAll();
//            
//            foreach($qs as $q){
//                echo $q->Name;
//            }

        } 
    }
?>
